<!doctype html>
<html lang="en"><head>
<head>
    <meta charset="utf-8">
    <title>地质灾害实时监测-控制台</title>
    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">

    <link href='http://fonts.useso.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'>
    <link rel="stylesheet" type="text/css" href="/static/stylesheets/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="/static/stylesheets/admin.css">
    <link rel="stylesheet" type="text/css" href="/static/stylesheets/vendor.css">
     <style type="text/css">
        .navbar-default .navbar-brand, .navbar-default .navbar-brand:hover { 
            color: #fff;
        }
    </style>
</head>
<body>
  <nav class="navbar navbar-default" >
    <div class="container-fluid ">
      <div class="navbar-header">
        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
          <span class="sr-only">Toggle navigation</span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button>
        <h3>中国矿业大学（北京）地质灾害实时监测系统</h3>
      </div>
      <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
        <ul class="nav navbar-nav">
         <!--  <li <?if(isset($nav)&&$nav=="add"){echo "class=\"active\"";}  ?> ><a href="/panel/index">检索<span class="sr-only">(current)</span></a></li>
          <li <?if(isset($nav)&&$nav=="setting"){echo "class=\"active\"";}  ?>><a href="/panel/setting">设置</a></li> -->
          <li><a href="/login/signout">退出</a></li>
        </ul>
      </div>
    </div>

    <div class="container">
      <p><img src="/static/logo.png" height="40px" /></p>
      <h2>搜索结果</h2>
      <div class="table-responsive">
        <input type="hidden" name="page"  id="page" value="<?=$page?>">
        <input type="hidden" name="keyword" id="keyword" value="<?=$value?>">
        <table class="table">
        	
          <?
      	foreach ($info as $k=>&$item){
          ?>
          	
          		<?php }?>
        </table>
      </div>

      共:<?=$num?>条记录，总计<?=$page_totle?>页
       <nav>
        <ul class="pagination">
          <li>
            <a href="/search?page=1&value=<?=$value?>" aria-label="Previous">
              <span aria-hidden="true">&laquo;</span>
            </a>
          </li>
          <?
          if($page<6){
      	    $show_begin=1;
      	    $show_num=$page_totle>6?6:$page_totle;
          }else{
      	    $show_begin=$page-3;
      	    $show_num=$page_totle>$page+3?$page+3:$page_totle;
          }
          for($i=$show_begin;$i<=$show_num;$i++){
          ?>
          <li <?if($page==$i){echo "class=\"active\"";} ?> ><a href="/search?page=<?=$i?>&value=<?=$value?>"><?=$i?></a></li>
          <?}?>
          <li>
            <a href="/search?page=<?=$page_totle?>&value=<?=$value?>" aria-label="Next">
              <span aria-hidden="true">&raquo;</span>
            </a>
          </li>
        </ul>
      </nav>
    </div>

</body>
</html>
